//
//  ViewBaseController.h
//  projectBase
//
//  Created by zhuangzhh on 14-11-15.
//  Copyright (c) 2014年 zhuangzhh. All rights reserved.
//

#import "ViewController.h"
#import "CommonLoadingView.h"
#import "SizeHeader.h"
#import "TipView.h"

@interface ViewBaseController : ViewController<UIActionSheetDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>
{
@protected
    CommonLoadingView* _comLoadView;
    NSMutableArray *snapArray;

}


@property (retain, nonatomic) UIToolbar *toolbarCancelDone;

@property (retain, nonatomic) UIPickerView *customPicker;

@property(retain,  nonatomic) UIView *selectTimeBgView;

//提供类内容区域显示加载中的方法。允许用户点击返回操
-(void)showLoadView;

-(void)showLoadView:(CGRect)rect backColor:(UIColor*)backColor;

-(void)showLoadViewExt:(CGRect)rect backColor:(UIColor*)backColor info:(NSString*)info;

-(void)closeLoadView;

-(void)showTipInfo:(NSString*)tipInfo;

-(void)showSelectImageView;

-(void)showNoContentView:(UIImage *)tipicon btnicon:(UIImage *)btnicon btntitle:(NSString *)btntitle textTitle:(NSString *)textTitle tipInside:(int)inside ishidebtn:(BOOL)ishide;

-(void)closeNoContentView;

-(UILabel *)createLabel:(CGRect)frame title:(NSString *)title fontSize:(int)fontSize textColor:(UIColor *)textColor;

-(UIButton *)createBtn:(CGRect)frame title:(NSString *)title iconImage:(UIImage *)iconImage backgroundImage:(UIImage *)bgImage tag:(int)tag textColor:(UIColor *)textColor;

-(void)takePhoto;

@end
